package com.pbking.facebook.delegates.data
{
	import com.pbking.facebook.Facebook;
	import com.pbking.facebook.delegates.FacebookDelegate;

	/**
	 * delegate for calling data.removeHashKeys  
 	 * reference: http://wiki.developers.facebook.com/index.php/Data_Store_API_documentation 
	 * 
	 * @author sol wu
	 */
	public class RemoveHashKeysDelegate extends FacebookDelegate
	{
		/**
		 * @param objType 	Object's type. This is required, so that different object types may use the same hash keys for different objects.
		 * @param keys 	A list of hash keys (string object identifier) to remove. 
 		 */
		public function RemoveHashKeysDelegate(facebook:Facebook, objType:String, keys:Array)
		{
			super(facebook);
			if (objType != "") { fbCall.setRequestArgument("obj_type", objType); }
			fbCall.setRequestArgument("keys", keys.join(","));
			fbCall.post("facebook.data.removeHashKeys");
		}
		
	}
}